package com.zmwx.subject.appliacion.controller;

import com.zmwx.subject.common.entity.Result;
import com.zmwx.subject.infra.entity.UserInfo;
import com.zmwx.subject.infra.rpc.UserRPC;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;


/**
 * @Author： zmwx
 * @Date： 2024/4/8 16:37
 * @Describe：
 */
@RestController
@Slf4j
public class TestFeignController {
    @Resource
    private UserRPC userRPC;
    @PostMapping("/TestFeignController")
    public Result queryCategoryAndLabel() {
        UserInfo userinfo = userRPC.getUserInfo("zmwx1");
        return Result.ok(userinfo);
    }
}
